/*
 * PluginManager.h
 *
 *  Created on: 2011. 3. 15.
 *      Author: JeeHoon
 */
#ifndef PLUGINMANAGER_H
#define PLUGINMANAGER_H

#include <FBase.h>
#include "Common.h"

class PhoneGapForm;

class PluginManager
{
public:
	PluginManager();
	~PluginManager();

	result Construct(PhoneGapForm * pPhoneGapForm);

	result nativeReady();
	result exec(Osp::Base::String service, Osp::Base::String action, Osp::Base::String callbackId, Osp::Base::String jsonArgs, bool async);
	Osp::Base::String evaluateJavascript(Osp::Base::String javascript);
	result processRequest(Osp::Base::String url);
	/* Values */
private:
	Osp::Base::Collection::HashMap *	__pServices;
	PhoneGapForm * 						__pPhoneGapForm;
};

#endif //PLUGINMANAGER_H
